package cn.cy.creation.factorymethod.general;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-13
 */
public class GeneralClient {

    public static void main(String[] args) {
        Shape shape1 = ShapeFactory.createShape("CIRCLE");
        shape1.draw();  // 输出: Drawing Circle

        Shape shape2 = ShapeFactory.createShape("SQUARE");
        shape2.draw();  // 输出: Drawing Square
    }

}
